<?php
namespace app\console\validate;

use think\Validate;

class Promotion extends Validate
{
    protected $rule = [
        ['title', 'require'],
        ['status', 'require'],
    ];

    protected $message = [
        'title.require'  => '请填写名称',
        'status.require' => '请选择启用状态',
    ];

    protected $scene = [
        'create' => ['title', 'status'],
    ];
}